﻿using JTTD.Common.Enum;
using System;
using JTTD.Common.Helper;

namespace JTTD.Domain.Dtos.Activity.Response
{
    /// <summary>
    /// 商城活动信息dto
    /// </summary>
    public  class ActivityInfoResponseDto:BaseResponseDto
    {
        /// <summary>
        /// 活动编号
        /// </summary>
        public string No { get; set; }
        /// <summary>
        /// 活动名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public string StartTimeStr => StartTime.ToString("yyyy-MM-dd HH:mm:ss");
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public string EndTimeStr =>EndTime.ToString("yyyy-MM-dd HH:mm:ss");

        /// <summary>
        /// 活动类型：固定积分活动:0，倍数积分活动:1
        /// </summary>
        public ActivityTypeEnum Type { get; set; }

        /// <summary>
        /// 活动类型
        /// </summary>
        public string TypeStr => Type.GetDescription();

        /// <summary>
        /// 活动赠送积分金额
        /// </summary>
        public decimal IntegralAmount{ get; set; }
        /// <summary>
        /// 账单转换积分倍数
        /// </summary>
        public decimal Multiple { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; }

        /// <summary>
        /// 活动图片
        /// </summary>
        public string Photo { get; set; }
    }
}
